Click or drag to resize

ResourceChangeProperty Method (String, Property, PropertyName)

Sets (adds) and removes properties to/from a resource.

Namespace:  Independentsoft.Webdav
Assembly:  Independentsoft.Webdav (in Independentsoft.Webdav.dll) Version: 1.0.700.18437
Syntax
public MultiStatus ChangeProperty(
	string address,
	Property[] addProperty,
	PropertyName[] removeProperty
)

Parameters

address
Type: SystemString
The URI that identifies the resource.
addProperty
Type: Independentsoft.WebdavProperty
Array of properties to set (add).
removeProperty
Type: Independentsoft.WebdavPropertyName
Array of properties to remove.

Return Value

Type: MultiStatus
A MultiStatus response as a result of operation.
Examples
The following example demonstrates how to use this method:
Property[] addProperty = new Property[2];
addProperty[0] = new Property("newproperty1","mynamespace:","123456789");
addProperty[1] = new Property("newproperty2","mynamespace:","abcd");

PropertyName[] removeProperty = new PropertyName[1];
removeProperty[0] = new PropertyName("oldproperty1","mynamespace:");

resource.ChangeProperty("http://server/folder1/",addProperty,removeProperty);
See Also